Skip to content
This repository was archived by the owner on Feb 20, 2022. It is now read-only.

Modify how memory usage is calculated #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cobrul
Copy link

@cobrul cobrul commented Mar 24, 2021

Currently, the exporter is showing different values compared to docker stats if the docker daemon runs on linux. In order to prevent misinterpretations, memory usage should be calcuclated like the docker stats command line.
See https://github.com/moby/moby/blob/eb131c5383db8cac633919f82abad86c99bffbe5/cli/command/container/stats_helpers.go#L175

@aleksa2808
Copy link

Ran into this issue as well. Very interested if this can be merged since, apart from the memory info not being very useful to us, this is a great exporter!

@RalfHerzog
Copy link

I noticed that the memory usage reported by the exporter including your PR (thanks btw) is different to the usage reported by docker stats. It seems that a multiplication by 10 delivers the same value. Can you confirm that?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants